function GongYueShu(a,b)
	if (a>b) then
		x=b
	else
		x=a
	end
	for i=x,1,-1 do
		if(a%i==0 and b%i==0) then
			c=i
		   break
		end
	end
	return c 
end

function GongBeiShu(a,b)
	j=a*b/GongYueShu(a,b)
	return j
end

io.write('Shu a=?')
a=io.read()
io.write('Shu b=?')
b=io.read()
x=GongBeiShu(a,b)
 print(x)
